package com.example.zzm.yuejian03.Model;



import com.example.zzm.yuejian03.Bean.LoginBean;
import com.example.zzm.yuejian03.Bean.UserBean;
import com.example.zzm.yuejian03.Iface.LoginIface;
import com.example.zzm.yuejian03.Listener.TListener;
import com.example.zzm.yuejian03.Service.Service;

import retrofit2.Call;
import retrofit2.Retrofit;

public class LoginModel extends RetrofitBaseModel implements LoginIface<LoginBean> {
    Retrofit retrofit;
    Service service;

    public LoginModel(){
        retrofit = getRetrofit();
        service = getService();
    }

    @Override
    public void getLoginMessge(String name, String password, final TListener<LoginBean> tListener) {
        Call<LoginBean> call=service.getLogin(name,password);
        callenqueue(call,tListener);

    }
}
